<template lang="pug">
div(ref="scroll")
	slot
</template>
<script>
import Bscroll from "better-scroll"
export default {
	props: {
		click:{
			type: Boolean,
			default: true
		},
		probeType:{
			type: Number,
			default: 3
		}
	},
	data () {
		return {
			scroll: {}
		}
	},
	mounted () {
		setTimeout(()=>{
			this.init();
		},300)
	},
	methods: {
		init(){
			this.scroll=new Bscroll(this.$refs.scroll,{
				click: this.click,
				probeType: this.probeType
			})
		}
	}
}
</script>
